package com.zking.ssm.He.service.impl;

import com.zking.ssm.He.mapper.HotelWithdrawalMapper;
import com.zking.ssm.He.model.HotelWithdrawal;
import com.zking.ssm.He.service.IHotelWithdrawalService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IHotelWithdrawalServiceImpl implements IHotelWithdrawalService {

    @Autowired
    private HotelWithdrawalMapper hotelWithdrawalMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hotelWithdrawalMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelWithdrawal record) {
        return hotelWithdrawalMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelWithdrawal record) {
        return hotelWithdrawalMapper.insertSelective(record);
    }

    @Override
    public HotelWithdrawal selectByPrimaryKey(Integer id) {
        return hotelWithdrawalMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelWithdrawal record) {
        return hotelWithdrawalMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelWithdrawal record) {
        return hotelWithdrawalMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelWithdrawal> list(HotelWithdrawal record, PageBean pageBean) {
        List<HotelWithdrawal> withdrawalList = hotelWithdrawalMapper.list(record);
        return withdrawalList;
    }
}
